package com.sg.model.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sg.framework.common.annotations.LikeFlag;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 字典表
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_base_check_item")   //3-11-03检查项表
public class CheckItem implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 检查项ID
     */
    @TableId(value = "check_item_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "checkItemId不能为空")
    private String checkItemId;
    /**
     * 检查项标识
     */
    @TableField(value = "check_item_code")
    @NotNull(message = "检查项标识不能为空")
    @Schema(description = "检查项标识")
    private String checkItemCode;
    /**
     * 用于业务场景ID
     */
    @TableField(value = "biz_scene_id")
    @NotNull(message = "用于业务场景ID不能为空")
    @Schema(description = "用于业务场景ID")
    private String bizSceneId;
    /**
     * 业务场景编码
     */
    @TableField(value = "biz_scene_code")
    @NotNull(message = "业务场景编码不能为空")
    @Schema(description = "业务场景编码")
    private String bizSceneCode;
    /**
     * 检查项名称
     */
    @TableField(value = "check_item_name")
    @NotNull(message = "检查项名称 不能为空")
    @Schema(description = "检查项名称 ")
    @LikeFlag(likeType = "LIKE")
    private String checkItemName;
    /**
     * 归属对象内容类型编码 OMS_EVALUATION_TEMPLATE:评价模板 OMS_EVALUATION_OBJECT_TARGET_CYCLE:被评对象目标周期 OMS_TARGET:目标表 OMS_TARGET_CATEGORY:目标分类表 OMS_TARGET_OBJECTIVE:指标表 OMS_TASK:任务表 OMS_VIRTUAL_ORG_MEMBER:虚拟组织成员表 UNION_APP:联盟应用 OMS_ORG_ORGANIZATION:组织表 OMS_CONF_SCHEME:配置方案表 OMS_FRAMEWORK_SPACE:空间表
     */
    @TableField(value = "object_type_code")
    @Schema(description = "归属对象内容类型编码")
    private String objectTypeCode;
    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;
    /**
     * 归属对象内容ID
     */
    @TableField(value = "object_id")
    @Schema(description = "归属对象内容ID")
    private String objectId;
    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;
    /**
     * 排序
     */
    @TableField(value = "order_number")
    @Schema(description = "排序")
    private Long orderNumber;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @NotNull(message = "操作人就职记录ID不能为空")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;
    /**
     * 存档人就职记录ID
     */
    @TableField(value = "archive_induction_id")
    @Schema(description = "存档人就职记录ID")
    private String archiveInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @NotNull(message = "操作时间不能为空")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;
    /**
     * 存档时间
     */
    @TableField(value = "archive_time")
    @Schema(description = "存档时间")
    private Date archiveTime;
    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
